#include "ishape.h"

void IShape::setWidth(double width)
{
    m_dWidth = width;
}

double IShape::getWidth()
{
    return m_dWidth;
}

double IShape::getHeght()
{
    return m_dHeight;
}

void IShape::setHeght(double height)
{
    m_dHeight = height;
}

double IShape::getX()
{
    return m_x;
}

double IShape::getY()
{
    return m_y;
}

double IShape::getCX()
{
    return m_cx;
}

double IShape::getCY()
{
    return m_cy;
}

void IShape::setPostion(double x, double y)
{
    m_x = x;
    m_y = y;

    m_cx = m_x + getWidth()/2;
    m_cy = m_y + getHeght()/2;
}

IShape::IShape()
{

}
